import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';

import 'package:get/get.dart';

import '../../../routes/app_pages.dart';
import '../../../style/widget_style.dart';
import '../../../widgets/AppHeader.dart';
import '../../../widgets/CommonWidgets.dart';
import '../controllers/about_us_controller.dart';

class AboutUsView extends GetView<AboutUsController> {
  const AboutUsView({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: SingleChildScrollView(
          child: Stack(
            children: [
              Container(
                child: SvgPicture.asset(
                  "assets/images/header_part_bg.svg",
                  width: Get.width,
                ),
              ),
              AppHeader.obtainHeaderWithoutRightPart('关于'),
              Container(
                width: Get.width,
                margin: EdgeInsets.only(top: 95.h),
                padding: EdgeInsets.all(20.w),
                child: Column(
                  children: [
                    Container(
                      child: Image.asset('assets/images/login_logo.png',width: 114.w,height: 118.h),
                    ),
                    SizedBox(height: 30.h,),
                    Container(
                      width: Get.width,
                      padding: EdgeInsets.all(18.w),
                      decoration: BoxDecoration(
                        boxShadow: [
                          CommonWidgets.getBoxShadow(),
                        ],
                        color:Colors.white,
                        borderRadius: BorderRadius.circular(8), // Optional: add border radius
                      ),
                      child: Column(
                        children: [
                          Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: [
                              Text('版本更新',style: AppStyleThemeData.BUTTON_TEXT_STYLE),
                              Row(
                                children: [
                                  Text('已是最新版本',style: AppStyleThemeData.HINT_TEXT_STYLE_small),
                                  Image.asset('assets/images/icon_mine_right_item.png',width: 24.w,height: 24.h,),
                                ],
                              )

                            ],
                          ),
                          SizedBox(height: 12.h,),
                          CommonWidgets.getMyDivider(),
                          SizedBox(height: 12.h,),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: [
                              Text('用户协议',style: AppStyleThemeData.BUTTON_TEXT_STYLE),
                              Image.asset('assets/images/icon_mine_right_item.png',width: 24.w,height: 24.h,),
                            ],
                          ),
                          SizedBox(height: 12.h,),
                          CommonWidgets.getMyDivider(),
                          SizedBox(height: 12.h,),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: [
                              Text('隐私政策',style: AppStyleThemeData.BUTTON_TEXT_STYLE),
                              Image.asset('assets/images/icon_mine_right_item.png',width: 24.w,height: 24.h,),
                            ],
                          ),
                          SizedBox(height: 12.h,),
                          CommonWidgets.getMyDivider(),
                          SizedBox(height: 12.h,),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: [
                              Text('客服电话',style: AppStyleThemeData.BUTTON_TEXT_STYLE),
                              Row(
                                children: [
                                  Text('89808080',style: AppStyleThemeData.HINT_TEXT_STYLE_small),
                                  Image.asset('assets/images/icon_mine_right_item.png',width: 24.w,height: 24.h,),

                                ],
                              )
                            ],
                          ),
                          SizedBox(height: 12.h,),
                          CommonWidgets.getMyDivider(),
                          SizedBox(height: 12.h,),
                          Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: [
                              Text('意见和建议',style: AppStyleThemeData.BUTTON_TEXT_STYLE),
                              Image.asset('assets/images/icon_mine_right_item.png',width: 24.w,height: 24.h,),
                            ],
                          ),

                        ],
                      ),
                    )

                  ],

                ),
              )
            ],
          ),
        )
    );
  }
}
